#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

# infile=open("D:/data/hgnc_complete_set.txt","r")
# for line in infile:
#     line=line.rstrip("\n")
#     splitline=line.split("\t")
#     if splitline[40]!="":
#         print splitline[40]
# infile.close()

def PickTermOrNot(line):
    import re

    line=line.strip()
    pattern=re.compile("^(.{5,}|[\w\-]{4}|(?!\d+$)(?![a-zA-Z]+$)[\da-zA-Z]{3})$")
    m = re.match(pattern, line)
    if m:
        return True
    else:
        return False

if __name__ == "__main__":
    print PickTermOrNot("")